<?php

require_once 'Zend/Controller/Plugin/Abstract.php';

class Core_Controller_Plugin_LogTraffic extends Zend_Controller_Plugin_Abstract
{
    /**
     * Logs the current request in the traffic log
     *
     */
    public function preDispatch (Zend_Controller_Request_Abstract $request)
    {
        $log = new Model_TrafficLog();
        $log->logHit();
    }
}